package design.TemplateMethod;

/**
 * Created by looper on 2017/8/18.
 */
public abstract class SpendHoliday {
  //放假之前的操作(步骤)
  public void holidaybefore(){
    System.out.println("辛勤工作,等待十月一国庆节的到来");
  }

  //放假时的操作(步骤)
  public abstract void holiday();

  public void holidayAfter(){
    System.out.println("收收心,上班");
  }

  public void templateMethod(){
    holidaybefore();
    holiday();
    holidayAfter();
  }
}
